package com.jiyun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 聪哥哥
 * @since 2023-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Material implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String code;

    private String name;

    /**
     * 供应商id
     */
    private Integer supplierId;

    /**
     * 存储格式为：1,2,3；存放选中的多级类型的id，逗号分隔的字符串
     */
    private String typeIds;

    /**
     * 物料单位：次，克，千克，小时等
     */
    private String unit;

    private Integer days;

    /**
     * 规格单位
     */
    private String specUnit;

    /**
     * 规格
     */
    private String spec;

    /**
     * 包装规格
     */
    private String packageSpec;

    /**
     * 有效/无效
     */
    private String state;

    private Date createTime;

    /**
     * 创建人
     */
    private String createUsername;

    private String shenheState;


}
